<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: random.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a03638.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">client/random.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03620_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a03638_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a51bd926174240245cff4a22cf9778776"><td class="memItemLeft" align="right" valign="top">HBRUSH WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a51bd926174240245cff4a22cf9778776">GetSysColorBrush</a> (int nIndex)</td></tr>
<tr class="separator:a51bd926174240245cff4a22cf9778776"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2b35949eec02327ff64d7026785f361"><td class="memItemLeft" align="right" valign="top">WINUSERAPI HANDLE WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#ad2b35949eec02327ff64d7026785f361">SetSysColorsTemp</a> (LPCOLORREF lpRGBs, HBRUSH *lpBrushes, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cBrushes)</td></tr>
<tr class="separator:ad2b35949eec02327ff64d7026785f361"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4039de941b150ef5a68cfe2217da8c84"><td class="memItemLeft" align="right" valign="top">ATOM&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a4039de941b150ef5a68cfe2217da8c84">MapPropertyKey</a> (LPWSTR pszKey)</td></tr>
<tr class="separator:a4039de941b150ef5a68cfe2217da8c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16fd457263dd41cbe1f41a4495bc85fe"><td class="memItemLeft" align="right" valign="top">LPWSTR&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a16fd457263dd41cbe1f41a4495bc85fe">TextAlloc</a> (LPCWSTR lpszSrc)</td></tr>
<tr class="separator:a16fd457263dd41cbe1f41a4495bc85fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f9caa22ed529d60b842daca58968a5d"><td class="memItemLeft" align="right" valign="top">NTSTATUS&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a4f9caa22ed529d60b842daca58968a5d">MapDeviceName</a> (LPCWSTR lpszDeviceName, PUNICODE_STRING pstrDeviceName, BOOL bAnsi)</td></tr>
<tr class="separator:a4f9caa22ed529d60b842daca58968a5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a253b30a063b2c70c1313ccf9786240c3"><td class="memItemLeft" align="right" valign="top">VOID WINAPI&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a253b30a063b2c70c1313ccf9786240c3">SetLastErrorEx</a> (<a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwErrCode, <a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a> dwType)</td></tr>
<tr class="separator:a253b30a063b2c70c1313ccf9786240c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:aedc8dc2d00e3a727cd22a983b28b1ce8"><td class="memItemLeft" align="right" valign="top">HBRUSH&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#aedc8dc2d00e3a727cd22a983b28b1ce8">ghbrWhite</a> = NULL</td></tr>
<tr class="separator:aedc8dc2d00e3a727cd22a983b28b1ce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae155f53f9cd74090fe4f5000c5790393"><td class="memItemLeft" align="right" valign="top">HBRUSH&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#ae155f53f9cd74090fe4f5000c5790393">ghbrBlack</a> = NULL</td></tr>
<tr class="separator:ae155f53f9cd74090fe4f5000c5790393"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f352eeb287eff80ca03bb5947be417e"><td class="memItemLeft" align="right" valign="top">HBRUSH&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a0f352eeb287eff80ca03bb5947be417e">ghbrGray</a> = NULL</td></tr>
<tr class="separator:a0f352eeb287eff80ca03bb5947be417e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eda8a037d292443fea7dc374b54f423"><td class="memItemLeft" align="right" valign="top">HBRUSH&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a8eda8a037d292443fea7dc374b54f423">ahbrSystem</a> [COLOR_MAX]</td></tr>
<tr class="separator:a8eda8a037d292443fea7dc374b54f423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46d0a34b23304be810fa1be62d1bcbe6"><td class="memItemLeft" align="right" valign="top">LPCOLORREF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a> = NULL</td></tr>
<tr class="separator:a46d0a34b23304be810fa1be62d1bcbe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e39090b3567157979f601c3deafe8b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a> = 0</td></tr>
<tr class="separator:a8e39090b3567157979f601c3deafe8b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a51bd926174240245cff4a22cf9778776"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51bd926174240245cff4a22cf9778776">&#9670;&nbsp;</a></span>GetSysColorBrush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HBRUSH WINAPI GetSysColorBrush </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nIndex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00035">35</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordflow">if</span> ((nIndex &lt; 0) || (nIndex &gt;= COLOR_MAX))</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a03638.html#a8eda8a037d292443fea7dc374b54f423">ahbrSystem</a>[nIndex];</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a03638_source.html#l00027">ahbrSystem</a>.</p>

</div>
</div>
<a id="a4f9caa22ed529d60b842daca58968a5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f9caa22ed529d60b842daca58968a5d">&#9670;&nbsp;</a></span>MapDeviceName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NTSTATUS MapDeviceName </td>
          <td>(</td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>lpszDeviceName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUNICODE_STRING&#160;</td>
          <td class="paramname"><em>pstrDeviceName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">BOOL&#160;</td>
          <td class="paramname"><em>bAnsi</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00213">213</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;{</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    NTSTATUS status = STATUS_UNSUCCESSFUL;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160; </div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="comment">     * A NULL name means the current device..</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordflow">if</span> (lpszDeviceName == NULL) {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160; </div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        pstrDeviceName-&gt;Length        = 0;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        pstrDeviceName-&gt;MaximumLength = 0;</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        pstrDeviceName-&gt;Buffer        = NULL;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160; </div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <span class="keywordflow">return</span> STATUS_SUCCESS;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160; </div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    }</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="comment">     * We have a real name, so do the conversion.</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keywordflow">if</span> (bAnsi) {</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        ANSI_STRING     AnsiString;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        PUNICODE_STRING UnicodeString = NULL;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160; </div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        RtlInitAnsiString(&amp;AnsiString, (LPSTR)lpszDeviceName);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160; </div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        UnicodeString = &amp;NtCurrentTeb()-&gt;StaticUnicodeString;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160; </div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;        <span class="keywordflow">if</span> (!NT_SUCCESS(RtlAnsiStringToUnicodeString(UnicodeString,</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                                                     &amp;AnsiString,</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                                                     FALSE))) {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            <span class="keywordflow">return</span> STATUS_UNSUCCESSFUL;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        }</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        lpszDeviceName = UnicodeString-&gt;Buffer;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    }</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keywordflow">if</span> (RtlDosPathNameToNtPathName_U(lpszDeviceName,</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                                     pstrDeviceName,</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;                                     NULL,</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;                                     NULL)) {</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160; </div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        OBJECT_ATTRIBUTES ObjectAttributes;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        HANDLE            linkHandle;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        InitializeObjectAttributes(&amp;ObjectAttributes,</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                                   pstrDeviceName,</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                                   OBJ_CASE_INSENSITIVE,</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;                                   NULL,</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                                   NULL);</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160; </div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        status = NtOpenSymbolicLinkObject(&amp;linkHandle,</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;                                          GENERIC_READ,</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;                                          &amp;ObjectAttributes);</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160; </div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        <span class="keywordflow">if</span> (NT_SUCCESS(status)) {</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160; </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="comment">             * We know the DosPathName is longer than the NT device</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="comment">             * object name, so reuse the same buffer.</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;            status = NtQuerySymbolicLinkObject(linkHandle,</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                                               pstrDeviceName,</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                                               NULL);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;            NtClose(linkHandle);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        }</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    }</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordflow">return</span> status;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">被这些函数引用 <a class="el" href="a00356_source.html#l01403">ChangeDisplaySettingsEx()</a>, <a class="el" href="a00026_source.html#l01982">CommonCreateDesktop()</a> , 以及 <a class="el" href="a00356_source.html#l01239">EnumDisplaySettingsEx()</a>.</p>

</div>
</div>
<a id="a4039de941b150ef5a68cfe2217da8c84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4039de941b150ef5a68cfe2217da8c84">&#9670;&nbsp;</a></span>MapPropertyKey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATOM MapPropertyKey </td>
          <td>(</td>
          <td class="paramtype">LPWSTR&#160;</td>
          <td class="paramname"><em>pszKey</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00166">166</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;{</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">     * Is pszKey an atom?  If not, find the atom that matches the string.</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">     * If one doesn&#39;t exist, bail out.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <span class="keywordflow">return</span> ((HIWORD(pszKey) != 0) ? GlobalFindAtomW(pszKey) : LOWORD(pszKey));</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="a253b30a063b2c70c1313ccf9786240c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a253b30a063b2c70c1313ccf9786240c3">&#9670;&nbsp;</a></span>SetLastErrorEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">VOID WINAPI SetLastErrorEx </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwErrCode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>&#160;</td>
          <td class="paramname"><em>dwType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00315">315</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;{</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    UNREFERENCED_PARAMETER(dwType);</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    SetLastError(dwErrCode);</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<a id="ad2b35949eec02327ff64d7026785f361"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2b35949eec02327ff64d7026785f361">&#9670;&nbsp;</a></span>SetSysColorsTemp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">WINUSERAPI HANDLE WINAPI SetSysColorsTemp </td>
          <td>(</td>
          <td class="paramtype">LPCOLORREF&#160;</td>
          <td class="paramname"><em>lpRGBs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">HBRUSH *&#160;</td>
          <td class="paramname"><em>lpBrushes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>&#160;</td>
          <td class="paramname"><em>cBrushes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00066">66</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> cbRGBSize;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> i;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> abElements[COLOR_MAX];</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">     * See if we are resetting the colors back to a saved state</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">if</span> (lpRGBs == NULL) {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment">         * When restoring cBrushes is really a handle to the old global</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">         * handle.  Make sure that is true.  Also lpBrushes is unused</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(lpBrushes == NULL);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(cBrushes == (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)<a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a>);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a> == NULL) {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#afa5f32de88404289ec03cd2c0e61e94f">RIP_ERROR</a>, <span class="stringliteral">&quot;SetSysColorsTemp: Can not restore if not saved&quot;</span>);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">         * reset the global Colors</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>((<span class="keyword">sizeof</span>(abElements)/<span class="keyword">sizeof</span>(abElements[0])) &gt;= <a class="code" href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a>);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="keywordflow">for</span> (i = 0; i &lt; <a class="code" href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a>; i++)</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            abElements[i] = i;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        <a class="code" href="a00362.html#a807eee6c1f5bdcb82d46e7aa29f9b9a8">NtUserSetSysColors</a>(<a class="code" href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a>, abElements, <a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a>, 0);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        UserLocalFree(<a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a> = NULL;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        <a class="code" href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a> = 0;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keywordflow">return</span> (HANDLE)TRUE;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    }</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">     * Make sure we aren&#39;t trying to set too many colors</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment">     * If we allow more then COLOR_MAX change the abElements array</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">if</span> (cBrushes &gt; COLOR_MAX) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <a class="code" href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a>(<a class="code" href="a00371.html#afa5f32de88404289ec03cd2c0e61e94f">RIP_ERROR</a>, <span class="stringliteral">&quot;SetSysColorsTemp: trying to set too many colors %lX&quot;</span>, cBrushes);</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment">     * If we have already a saved state then don&#39;t let them save it again</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a> != NULL) {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#afa5f32de88404289ec03cd2c0e61e94f">RIP_ERROR</a>, <span class="stringliteral">&quot;SetSysColorsTemp: temp colors already set&quot;</span>);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<span class="comment">     * If we are here then we must be setting the new temp colors</span></div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="comment">     *</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment">     * First save the old colors</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    cbRGBSize = <span class="keyword">sizeof</span>(COLORREF) * cBrushes;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>(<span class="keyword">sizeof</span>(COLORREF) == <span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a> = UserLocalAlloc(HEAP_ZERO_MEMORY, cbRGBSize);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a> == NULL) {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <a class="code" href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a>(<a class="code" href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a>, <span class="stringliteral">&quot;SetSysColorsTemp: unable to alloc temp colors buffer&quot;</span>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    }</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    RtlCopyMemory(<a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a>, <a class="code" href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a>-&gt;<a class="code" href="a02513.html#af405b2ed63e81980b447932ddc614536">argbSystem</a>, cbRGBSize);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;<span class="comment">     * Now set the new colors.</span></div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <a class="code" href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a>( (<span class="keyword">sizeof</span>(abElements)/<span class="keyword">sizeof</span>(abElements[0])) &gt;= cBrushes);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keywordflow">for</span> (i = 0; i &lt; cBrushes; i++)</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        abElements[i] = i;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <a class="code" href="a00362.html#a807eee6c1f5bdcb82d46e7aa29f9b9a8">NtUserSetSysColors</a>(cBrushes, abElements, lpRGBs, 0);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <a class="code" href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a> = cBrushes;</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00365_source.html#l00976">tagSERVERINFO::argbSystem</a>, <a class="el" href="a03638_source.html#l00064">gcOriginalRGBs</a>, <a class="el" href="a03638_source.html#l00063">gpOriginalRGBs</a>, <a class="el" href="a00020_source.html#l00039">gpsi</a>, <a class="el" href="a03614_source.html#l04715">NtUserSetSysColors()</a>, <a class="el" href="a00371_source.html#l00028">RIP_ERROR</a>, <a class="el" href="a00371_source.html#l00029">RIP_WARNING</a>, <a class="el" href="a00371_source.html#l00131">RIPMSG0</a>, <a class="el" href="a00371_source.html#l00132">RIPMSG1</a>, <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a> , 以及 <a class="el" href="a00950_source.html#l00117">UserAssert</a>.</p>

</div>
</div>
<a id="a16fd457263dd41cbe1f41a4495bc85fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16fd457263dd41cbe1f41a4495bc85fe">&#9670;&nbsp;</a></span>TextAlloc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LPWSTR TextAlloc </td>
          <td>(</td>
          <td class="paramtype">LPCWSTR&#160;</td>
          <td class="paramname"><em>lpszSrc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00185">185</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;{</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    LPWSTR pszT;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>  cbString;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordflow">if</span> (lpszSrc == NULL)</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160; </div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    cbString = (wcslen(lpszSrc) + 1) * <span class="keyword">sizeof</span>(WCHAR);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordflow">if</span> (pszT = (LPWSTR)UserLocalAlloc(HEAP_ZERO_MEMORY, cbString)) {</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        RtlCopyMemory(pszT, lpszSrc, cbString);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    }</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordflow">return</span> pszT;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00563_source.html#l00175">DWORD</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00200_source.html#l01481">MDIClientWndProcWorker()</a>, <a class="el" href="a00212_source.html#l00267">MessageBoxWorker()</a> , 以及 <a class="el" href="a00200_source.html#l00061">xxxSetFrameTitle()</a>.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a8eda8a037d292443fea7dc374b54f423"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eda8a037d292443fea7dc374b54f423">&#9670;&nbsp;</a></span>ahbrSystem</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HBRUSH ahbrSystem[COLOR_MAX]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00027">27</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00035_source.html#l00749">ClientThreadSetup()</a>, <a class="el" href="a00041_source.html#l00555">DefWindowProcWorker()</a>, <a class="el" href="a00623_source.html#l01008">DestroyClassBrush()</a>, <a class="el" href="a03212_source.html#l01067">DrawFrame()</a>, <a class="el" href="a03212_source.html#l00029">FillRect()</a>, <a class="el" href="a03638_source.html#l00035">GetSysColorBrush()</a>, <a class="el" href="a00584_source.html#l04932">Idsi()</a>, <a class="el" href="a03614_source.html#l03592">NtUserInitBrushes()</a>, <a class="el" href="a00707_source.html#l00188">RedrawHungWindow()</a>, <a class="el" href="a00878_source.html#l00097">SetSysColor()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00614_source.html#l00768">xxxDrawCaptionBar()</a>, <a class="el" href="a00773_source.html#l00407">xxxDrawMenuItem()</a> , 以及 <a class="el" href="a00671_source.html#l00329">xxxDWP_EraseBkgnd()</a>.</p>

</div>
</div>
<a id="a8e39090b3567157979f601c3deafe8b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e39090b3567157979f601c3deafe8b1">&#9670;&nbsp;</a></span>gcOriginalRGBs</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a> gcOriginalRGBs = 0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00064">64</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03638_source.html#l00066">SetSysColorsTemp()</a>.</p>

</div>
</div>
<a id="ae155f53f9cd74090fe4f5000c5790393"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae155f53f9cd74090fe4f5000c5790393">&#9670;&nbsp;</a></span>ghbrBlack</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HBRUSH ghbrBlack = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00024">24</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00779_source.html#l00053">_DrawState()</a>, <a class="el" href="a00035_source.html#l00749">ClientThreadSetup()</a>, <a class="el" href="a03212_source.html#l00416">DrawBox()</a> , 以及 <a class="el" href="a00719_source.html#l01045">LW_BrushInit()</a>.</p>

</div>
</div>
<a id="a0f352eeb287eff80ca03bb5947be417e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f352eeb287eff80ca03bb5947be417e">&#9670;&nbsp;</a></span>ghbrGray</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HBRUSH ghbrGray = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00025">25</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00779_source.html#l00053">_DrawState()</a>, <a class="el" href="a00206_source.html#l00073">ClientDrawState()</a>, <a class="el" href="a00035_source.html#l00749">ClientThreadSetup()</a>, <a class="el" href="a00041_source.html#l00555">DefWindowProcWorker()</a>, <a class="el" href="a03212_source.html#l00416">DrawBox()</a>, <a class="el" href="a00614_source.html#l00370">DrawCaptionIcon()</a>, <a class="el" href="a00044_source.html#l00026">DrawFocusRect()</a>, <a class="el" href="a03212_source.html#l01067">DrawFrame()</a>, <a class="el" href="a00833_source.html#l00418">DrawGroove()</a>, <a class="el" href="a03212_source.html#l01004">DrawPushButton()</a>, <a class="el" href="a00671_source.html#l00024">DWP_DrawItem()</a>, <a class="el" href="a00035_source.html#l01089">InitClientDrawing()</a>, <a class="el" href="a00719_source.html#l01045">LW_BrushInit()</a>, <a class="el" href="a03614_source.html#l03592">NtUserInitBrushes()</a>, <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>, <a class="el" href="a00671_source.html#l01146">xxxDefWindowProc()</a>, <a class="el" href="a00614_source.html#l00544">xxxDrawCaptionTemp()</a> , 以及 <a class="el" href="a00719_source.html#l01535">xxxFinalUserInit()</a>.</p>

</div>
</div>
<a id="aedc8dc2d00e3a727cd22a983b28b1ce8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc8dc2d00e3a727cd22a983b28b1ce8">&#9670;&nbsp;</a></span>ghbrWhite</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HBRUSH ghbrWhite = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00023">23</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00035_source.html#l00749">ClientThreadSetup()</a>, <a class="el" href="a03212_source.html#l00416">DrawBox()</a>, <a class="el" href="a03212_source.html#l00527">DrawMenuMark()</a>, <a class="el" href="a00719_source.html#l01045">LW_BrushInit()</a> , 以及 <a class="el" href="a00620_source.html#l00094">UT_InvertCaret()</a>.</p>

</div>
</div>
<a id="a46d0a34b23304be810fa1be62d1bcbe6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46d0a34b23304be810fa1be62d1bcbe6">&#9670;&nbsp;</a></span>gpOriginalRGBs</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LPCOLORREF gpOriginalRGBs = NULL</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a03638_source.html">client/random.c</a> 第 <a class="el" href="a03638_source.html#l00063">63</a> 行定义.</p>

<p class="reference">被这些函数引用 <a class="el" href="a03638_source.html#l00066">SetSysColorsTemp()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00371_html_a01c4659626880ba56745765a3580a36b"><div class="ttname"><a href="a00371.html#a01c4659626880ba56745765a3580a36b">RIPMSG0</a></div><div class="ttdeci">#define RIPMSG0(flags, szFmt)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00131">winerrp.h:131</a></div></div>
<div class="ttc" id="aa00362_html_a807eee6c1f5bdcb82d46e7aa29f9b9a8"><div class="ttname"><a href="a00362.html#a807eee6c1f5bdcb82d46e7aa29f9b9a8">NtUserSetSysColors</a></div><div class="ttdeci">BOOL NtUserSetSysColors(IN int cElements, IN CONST INT *lpaElements, IN CONST COLORREF *lpaRgbValues, IN UINT uOptions)</div><div class="ttdef"><b>Definition:</b> <a href="a03614_source.html#l04715">kernel/ntstubs.c:4715</a></div></div>
<div class="ttc" id="aa03638_html_a8eda8a037d292443fea7dc374b54f423"><div class="ttname"><a href="a03638.html#a8eda8a037d292443fea7dc374b54f423">ahbrSystem</a></div><div class="ttdeci">HBRUSH ahbrSystem[COLOR_MAX]</div><div class="ttdef"><b>Definition:</b> <a href="a03638_source.html#l00027">client/random.c:27</a></div></div>
<div class="ttc" id="aa03638_html_a8e39090b3567157979f601c3deafe8b1"><div class="ttname"><a href="a03638.html#a8e39090b3567157979f601c3deafe8b1">gcOriginalRGBs</a></div><div class="ttdeci">UINT gcOriginalRGBs</div><div class="ttdef"><b>Definition:</b> <a href="a03638_source.html#l00064">client/random.c:64</a></div></div>
<div class="ttc" id="aa00371_html_a162a73e20dfabca084a3ebb4581631a8"><div class="ttname"><a href="a00371.html#a162a73e20dfabca084a3ebb4581631a8">UserAssert</a></div><div class="ttdeci">#define UserAssert(exp)</div><div class="ttdef"><b>Definition:</b> <a href="a00950_source.html#l00117">usersrv.h:117</a></div></div>
<div class="ttc" id="aa00371_html_afa5f32de88404289ec03cd2c0e61e94f"><div class="ttname"><a href="a00371.html#afa5f32de88404289ec03cd2c0e61e94f">RIP_ERROR</a></div><div class="ttdeci">#define RIP_ERROR</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00028">winerrp.h:28</a></div></div>
<div class="ttc" id="aa00371_html_a31aafffb49dfe98bdc749c9b35c90162"><div class="ttname"><a href="a00371.html#a31aafffb49dfe98bdc749c9b35c90162">RIPMSG1</a></div><div class="ttdeci">#define RIPMSG1(flags, szFmt, p1)</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00132">winerrp.h:132</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa00371_html_a41f433389f20db57f042022a662e96de"><div class="ttname"><a href="a00371.html#a41f433389f20db57f042022a662e96de">RIP_WARNING</a></div><div class="ttdeci">#define RIP_WARNING</div><div class="ttdef"><b>Definition:</b> <a href="a00371_source.html#l00029">winerrp.h:29</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa03638_html_a46d0a34b23304be810fa1be62d1bcbe6"><div class="ttname"><a href="a03638.html#a46d0a34b23304be810fa1be62d1bcbe6">gpOriginalRGBs</a></div><div class="ttdeci">LPCOLORREF gpOriginalRGBs</div><div class="ttdef"><b>Definition:</b> <a href="a03638_source.html#l00063">client/random.c:63</a></div></div>
<div class="ttc" id="aa02513_html_af405b2ed63e81980b447932ddc614536"><div class="ttname"><a href="a02513.html#af405b2ed63e81980b447932ddc614536">tagSERVERINFO::argbSystem</a></div><div class="ttdeci">COLORREF argbSystem[COLOR_MAX]</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00976">user.h:976</a></div></div>
<div class="ttc" id="aa00020_html_ad760da1dd81d9e84dee607d18edfde39"><div class="ttname"><a href="a00020.html#ad760da1dd81d9e84dee607d18edfde39">gpsi</a></div><div class="ttdeci">PSERVERINFO gpsi</div><div class="ttdef"><b>Definition:</b> <a href="a00020_source.html#l00039">clglobal.c:39</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_caf01b281dbc7d7ffe410ecf117b6142.html">client</a></li><li class="navelem"><a class="el" href="a03638.html">random.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
